Integrand size = 38, antiderivative size = 137 \[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=-\frac {2 \sqrt {a+b} B \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {21, 4307, 2888} \[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=-\frac {2 B \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{b d \sqrt {\sec (c+d x)}} \]
[In]
[Out]
Rule 21
Rule 2888
Rule 4307
Rubi steps \begin{align*} \text {integral}& = B \int \frac {1}{\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}} \, dx \\ & = \left (B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx \\ & = -\frac {2 \sqrt {a+b} B \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 147, normalized size of antiderivative = 1.07 \[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=-\frac {2 B \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} \left (\operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {-a+b}{a+b}\right )-2 \operatorname {EllipticPi}\left (-1,\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {-a+b}{a+b}\right )\right ) \sqrt {1+\sec (c+d x)}}{d \sqrt {\frac {1}{1+\cos (c+d x)}} \sqrt {a+b \cos (c+d x)}} \]
[In]
[Out]
Time = 15.26 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.01
method | result | size |
default | \(\frac {2 B \left (F\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right )-2 \Pi \left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), -1, \sqrt {-\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {a +\cos \left (d x +c \right ) b}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}}{d \sqrt {a +\cos \left (d x +c \right ) b}\, \sqrt {\sec \left (d x +c \right )}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\) | \(138\) |
parts | \(\text {Expression too large to display}\) | \(1821\) |
[In]
[Out]
\[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=\int { \frac {B b \cos \left (d x + c\right ) + B a}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\sec \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=B \int \frac {1}{\sqrt {a + b \cos {\left (c + d x \right )}} \sqrt {\sec {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=\int { \frac {B b \cos \left (d x + c\right ) + B a}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\sec \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=\int { \frac {B b \cos \left (d x + c\right ) + B a}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\sec \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a B+b B \cos (c+d x)}{(a+b \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}} \, dx=\int \frac {B\,a+B\,b\,\cos \left (c+d\,x\right )}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]